package cn.com.jcoo.api;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import model.Company;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Tag(name = "example", description = "示例")
@RestController
@RequestMapping("/example")
public class ExampleApi {

	@Operation(summary = "output", description = "输出打印")
	@PostMapping("/output")
	public Company output(Company company) {
		log.info(company.toString());
		return company;
	}
}
